package com.sunstar.koobaselib.kootl.rvItemtouch.presenter;

import com.sunstar.koobaselib.kootl.rvItemtouch.contract.ItemTouchContract;
import com.sunstar.koobaselib.kootl.rvItemtouch.model.ItemTouchModelImpl;

/**
 * Created by louisgeek on 2016/12/30
 */

public class ItemTouchPresenterImpl implements ItemTouchContract.Presenter<ItemTouchContract.View> {

    private ItemTouchContract.Model mModel;
    private ItemTouchContract.View mView;

    public ItemTouchPresenterImpl(ItemTouchContract.View view) {
        this.attachView(view);
        mModel = new ItemTouchModelImpl();
    }

    @Override
    public void attachView(ItemTouchContract.View view) {
        mView = view;
    }

    @Override
    public void detachView() {
        mView = null;
    }

    @Override
    public void gainCountData(int pageCount) {
       /* mModel.loadData(new BaseCallBack<List<ItemTouchBean>>() {
            @Override
            public void onSuccess(List<ItemTouchBean> data) {
                mView.setupData(data);
            }

            @Override
            public void onError(String msg) {

            }
        });*/
    }

    @Override
    public void gainMoreData(int pageNum) {

    }


}